#
# Be sure to run `pod lib lint NEDViews.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
    s.name             = 'NEDViews'
    s.version          = '0.1.0'
    s.summary          = 'A short description of NEDViews.'
    
    # This description is used to generate tags and improve search results.
    #   * Think: What does it do? Why did you write it? What is the focus?
    #   * Try to keep it short, snappy and to the point.
    #   * Write the description between the DESC delimiters below.
    #   * Finally, don't worry about the indent, CocoaPods strips it!
    
    s.description      = <<-DESC
    TODO: Add long description of the pod here.
    DESC
    
    s.homepage         = 'http://gitlab.miguan.com/ad-ios/NEDViews'
    # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
    s.license          = { :type => 'MIT', :file => 'LICENSE' }
    s.author           = { '林宁宁' => 'linningning@98du.com' }
    s.source           = { :git => 'http://gitlab.miguan.com/ad-ios/NEDViews.git', :tag => s.version.to_s }
    # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'
    
    s.ios.deployment_target = '9.0'
    
    
    s.subspec 'InputView' do |cs|
      cs.source_files = 'NEDViews/Classes/InputView/**/*'
      
      cs.dependency 'NEDCategory/UIKit/Input'
      cs.dependency 'NEDCategory/UIKit/View'
      cs.dependency 'NEDCategory/Foundation/Decimal'
    end
    
    s.subspec 'PopView' do |cs|
      
        cs.subspec 'Base' do |ccs|
          ccs.source_files = 'NEDViews/Classes/PopView/Base/**/*'
          
          ccs.dependency 'NEDCategory/Foundation/Keyboard'
        end
        
        cs.subspec 'Sheet' do |ccs|
          ccs.source_files = 'NEDViews/Classes/PopView/Sheet/**/*'
          
          ccs.dependency 'NEDViews/PopView/Base'
          ccs.dependency 'NEDCategory/Foundation/Attribute'
          ccs.dependency 'NEDCategory/UIKit/Control'
          ccs.dependency 'NEDCategory/UIKit/View'
        end
        
        cs.subspec 'Alert' do |ccs|
          ccs.source_files = 'NEDViews/Classes/PopView/Alert/**/*'
          
          ccs.dependency 'NEDViews/PopView/Base'
          ccs.dependency 'NEDCategory/UIKit/Control'
          ccs.dependency 'NEDCategory/UIKit/View'
          ccs.dependency 'NEDCategory/UIKit/Button'
        end

    end
    
    s.subspec 'PickerView' do |cs|
        cs.source_files = 'NEDViews/Classes/PickerView/**/*'
        
        cs.dependency 'NEDViews/PopView'
        cs.dependency 'NEDCategory/Foundation/Date'
        cs.dependency 'NEDCategory/Foundation/String'
        cs.dependency 'NEDCategory/UIKit/Control'
        cs.dependency 'NEDCategory/UIKit/View'
    end
    
    s.subspec 'PreView' do |cs|
        cs.source_files = 'NEDViews/Classes/PreView/**/*'
        
        cs.dependency 'NEDViews/PopView'
        cs.dependency 'NEDCategory/UIKit/WebImage'
        cs.dependency 'NEDCategory/UIKit/Image'
        cs.dependency 'NEDHUD'
    end
    
    s.dependency 'NEDConstant'
    s.dependency 'NEDStyle'
    s.dependency 'NEDBase/View'
    s.dependency 'NEDApp/AppInfo'
    s.dependency 'NEDCategory/Foundation/Attribute'
    
    s.dependency 'Masonry'
    
end
